<?
    $user = user_load($fields['uid']->content);
    $username = implode(' ', array(
        $user->field_profile_name['und'][0]['safe_value'],
        $user->field_profile_surname['und'][0]['safe_value'],
    ));

    $userlink = strlen(trim($username))
        ? str_replace('#user_name', string_wrap($username, 12), $fields['view_user']->content)
        : $fields['rendered_entity']->content;

    $author = $fields['field_author']->content;
?>
<li>
    <div class="date">
        <?= $fields['created']->content ?> /
        <? if ($author) { ?>Автор: <b><?= $author ?></b> / Опубликовано:<? } ?>
        <?= $userlink ?>
    </div>
    <?/*<div class="date"><?= $fields['created']->content ?></div>*/?>
    <span class="aTitle"><?= $fields['title']->content ?></span>
    <?= $img = $fields['field_image']->content ?>
    <div class="txt <?= strlen($img) ? 'img' : ''?>" ><?= $fields['body']->content ?>
        <div class="kwords">
            <? $tags = $fields['field_tags']->content ?>
            <?= strlen($tags) ? 'Метки: ' . $tags : '' ?>
        </div>
    </div>
    <ul class="minies">
        <!--li><a class="st">12</a></li-->
        <li><a class="vi"><?= $fields['totalcount']->content ?></a></li>
        <li><a class="co"><?= $fields['comment_count']->content ?></a></li>
    </ul>
    <div class="cb"><span><!-- just for correct floatin' --></span></div>
</li>